﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmSeguimientoImportacionDocumentos.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmSeguimientoImportacionDocumentos" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <div class="main-header" style="width: 100%">
        <div class="main-titulo" style="width: 87%;">
            Importaciones
        </div>
    </div>
    <div class="content-form contenido">
    <table>
    <tr>
    <td>
    
        <dx:ASPxButton ID="btnGrabar" runat="server" Text="Grabar" AutoPostBack="False" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
            Width="100px" onclick="btnGrabar_Click">
            <Image Url="~/Images/save_16.gif">
            </Image>
            <Paddings Padding="4px" />
        </dx:ASPxButton>
    </td>
    <td>
    
        <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" AutoPostBack="False" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
            Width="100px" onclick="btnSalir_Click">
            <Image Url="~/Images/logout.png">
            </Image>
            <Paddings Padding="4px" />
        </dx:ASPxButton>
    </td>
    </tr>
    
    </table>
        <dx:ASPxRoundPanel ID="rpDocumentoFiltro" runat="server" Width="700px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" HeaderText="" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
            <HeaderStyle>
                <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
            </HeaderStyle>
            <PanelCollection>
                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                    <table>
                        <tr>
                            <td class="filas2">
                                Org.venta
                            </td>
                            <td class="filas2">
                                <dx:ASPxComboBox ID="cboOrganizacion" runat="server" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" Spacing="0" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                    </LoadingPanelImage>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <Paddings Padding="4px" />
                                </dx:ASPxComboBox>

                            </td>
                        </tr>
                        <tr>
                            <td class="filas2">
                                Ingrese Nro.pedido:
                            </td>
                            <td class="filas2">
                                <dx:ASPxTextBox ID="txtNumPedido" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <Paddings Padding="4px" />
                                </dx:ASPxTextBox>
                            </td>
                            <td class="filas2">
                                <dx:ASPxButton ID="btnBuscar" runat="server" Text="Buscar" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    OnClick="btnBuscar_Click">
                                    <Paddings Padding="4px" />
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                </dx:PanelContent>
            </PanelCollection>
        </dx:ASPxRoundPanel>
        <table>
            <tr>
                <td>
                    <dx:ASPxRoundPanel ID="rpDocumentos" runat="server" Width="700px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                        GroupBoxCaptionOffsetY="-19px" HeaderText="" ShowHeader="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <HeaderStyle>
                            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                        </HeaderStyle>
                        <PanelCollection>
                            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                <table>
                                    <tr>
                                        <td class="filas2">
                                            <dx:ASPxButton ID="btnDocNuevo" runat="server" Text="Nuevo" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Width="100px" OnClick="btnDocNuevo_Click" AutoPostBack="False">
                                                <Image Url="~/Images/bt_new_button.gif">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                        <td class="filas2">
                                            <dx:ASPxButton ID="btnDocModificar" runat="server" Text="Modificar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Width="100px" AutoPostBack="False" OnClick="btnDocModificar_Click">
                                                <Image Url="~/Images/edit2.gif">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                        <td class="filas2">
                                            <dx:ASPxButton ID="btnDocAnular" runat="server" Text="Eliminar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                Width="100px" OnClick="btnDocEliminar_Click" AutoPostBack="False">
                                                <Image Url="~/Images/delete.png">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                                <dx:ASPxGridView ID="grdListaDocumentosImportaciones" runat="server" 
                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                    Width="600px" AutoGenerateColumns="False" 
                                                    KeyFieldName="ID_T_IMPORTACIONES_RELACION" 
                                    OnAfterPerformCallback="grdListaDocumentosImportaciones_AfterPerformCallback">
                                                    <TotalSummary>
                                                        <dx:ASPxSummaryItem FieldName="NUM_PEDIDO" SummaryType="Count" DisplayFormat="total de filas = #,##0" />
                                                    </TotalSummary>
                                                    <Columns>
                                                        <dx:GridViewDataTextColumn FieldName="ID_T_IMPORTACIONES_RELACION" VisibleIndex="0" Visible="False">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="Nro Pedido" FieldName="NUM_PEDIDO" VisibleIndex="1">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="Org Vta" FieldName="DES_ORG_VTA" VisibleIndex="2">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="Tipo Documento" FieldName="DES_LARGA" VisibleIndex="3">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn Caption="Nro Documento" FieldName="COD_NRO_DOCUMENTO" VisibleIndex="4">
                                                        </dx:GridViewDataTextColumn>
                                                        <dx:GridViewDataTextColumn FieldName="ID_TIPO_DOC_SEG" VisibleIndex="5" Visible="False">
                                                        </dx:GridViewDataTextColumn>
                                                    </Columns>
                                                    <SettingsBehavior AllowFocusedRow="True" />
                                                    <SettingsPager AlwaysShowPager="false" PageSize="15">
                                                    </SettingsPager>
                                                    <Settings ShowFooter="True" ShowVerticalScrollBar="True" 
                                                        VerticalScrollableHeight="350" />
                                                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                        </LoadingPanelOnStatusBar>
                                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                        </LoadingPanel>
                                                    </Images>
                                                    <ImagesFilterControl>
                                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                        </LoadingPanel>
                                                    </ImagesFilterControl>
                                                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                        </Header>
                                                        <LoadingPanel ImageSpacing="5px">
                                                        </LoadingPanel>
                                                    </Styles>
                                                    <StylesPager>
                                                        <PageNumber ForeColor="#3E4846">
                                                        </PageNumber>
                                                        <Summary ForeColor="#1E395B">
                                                        </Summary>
                                                    </StylesPager>
                                                    <StylesEditors ButtonEditCellSpacing="0">
                                                        <ProgressBar Height="21px">
                                                        </ProgressBar>
                                                    </StylesEditors>
                                                </dx:ASPxGridView>
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxRoundPanel>
                </td>
            </tr>
            <tr>
            <td>
            
            <dx:ASPxPopupControl ID="PopupDocumento" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" HeaderText="Actualizar Documento"
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="600px" AllowDragging="True" ClientInstanceName="PopupDocumento" 
                    Modal="True" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter" EnableHotTrack="False">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                        <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                            <table>
                                <tr>
                                    <td class="filas_msg">
                                        <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="Org.Venta :" Width="150px">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxLabel ID="lblDROrgVta" runat="server">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="filas_msg">
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxLabel ID="ASPxLabel11" runat="server" Text="Número pedido :" Width="150px">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="filas">
                                        <dx:ASPxLabel ID="lblDRNumeroPedido" runat="server" ClientInstanceName="lblDRNumeroPedido">
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="filas_msg">
                                        <dx:ASPxLabel ID="ASPxLabel12" runat="server" Text="Tipo documento seg. :">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxComboBox ID="cboDRTipoDocumento" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" Spacing="0"
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <ButtonStyle Width="13px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td class="filas_msg">
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxLabel ID="ASPxLabel13" runat="server" Text="Número documento :">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td class="filas_msg">
                                        <dx:ASPxTextBox ID="txtDRNumeroDocumento" runat="server" Width="150px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="filas_msg" colspan="5">
                                        &nbsp;<table width="100%">
                                            <tr>
                                                <td align="right">
                                                    <dx:ASPxButton ID="btnPopDocAgregar" runat="server" 
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                        CssPostfix="Office2010Blue" OnClick="btnPopDocAgregar_Click" 
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Guardar" 
                                                        Width="100px" AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e){PopupDocumento.Hide();}" />
                                                        <Image Url="~/Images/save_16.gif">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="right" width="105">
                                                    <dx:ASPxButton ID="btnPopDocCancelar" runat="server" AutoPostBack="False" 
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                                        CssPostfix="Office2010Blue" 
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cancelar" 
                                                        Width="100px">
                                                        <ClientSideEvents Click="function(s, e) {PopupDocumento.Hide();}" />
                                                        <Image Url="~/Images/cancel.gif">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                        &nbsp; &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                
            </td>
                
            </tr>
            <tr>
            <td>
            
            
            <dx:ASPxPopupControl ID="pcMensajeCliente" runat="server" AllowDragging="True" 
                    ClientInstanceName="pcMensajeCliente" CloseAction="None" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Mensaje" 
                    Modal="True" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="350px" 
                    AppearAfter="350" EnableHotTrack="False">
                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                        <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl10" runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxPanel ID="ASPxPanel9" runat="server" DefaultButton="btCreate">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent11" runat="server">
                                        <table width="100%">
                                            <tr>
                                                <td class="filas2" align="center">
                                                    <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" class="filas2">
                                                    <dx:ASPxButton ID="ASPxButton6" runat="server" Text="Aceptar" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        Width="100px" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ClientSideEvents Click="function(s, e) {pcMensajeCliente.Hide();}" />
                                                        <Image Url="~/Images/ok.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
            </td>
            </tr>
        </table>
    </div>
</asp:Content>
